﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.SetupMachineModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Change
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Change</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.LocationSetCode) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.LocationSetCode, new { @readonly = "readonly" })%>
                
                <%= Html.ValidationMessageFor(model => model.LocationSetCode) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SetupDate)%>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SetupDate,  String.Format("{0:g}", Model.SetupDate)) %>
                <%= Html.ValidationMessageFor(model => model.SetupDate) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ModelId) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ModelId, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.ModelId) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Temp) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Temp, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.Temp) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SerialNo) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SerialNo, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.SerialNo) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StartMeter) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StartMeter, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.StartMeter) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.EndMeter) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.EndMeter) %>
                <%= Html.ValidationMessageFor(model => model.EndMeter) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.TotalMeter) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.TotalMeter, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.TotalMeter) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.RentBasic) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.RentBasic,String.Format("{0:F}", Model.RentBasic)) %>
                <%= Html.ValidationMessageFor(model => model.RentBasic) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Remark) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Remark, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.Remark) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status, new { @readonly = "readonly" })%>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
          <%--  <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateOn, String.Format("{0:g}", Model.CreateOn)) %>
                <%= Html.ValidationMessageFor(model => model.CreateOn) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateBy) %>
                <%= Html.ValidationMessageFor(model => model.UpdateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateOn, String.Format("{0:g}", Model.UpdateOn)) %>
                <%= Html.ValidationMessageFor(model => model.UpdateOn) %>
            </div>--%>
            
            <p>
                <input class="buttonSummit" type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

